package com.foton.designmodel.strategy.impl;

import com.foton.designmodel.strategy.VipMoney;
import org.springframework.stereotype.Component;

/**
 * 会员等级为：2 则进行减5块
 */
@Component("vipTwo")
public class VipTwo implements VipMoney {

    @Override
    public Integer money(Integer orderAmount) {
        return orderAmount-5;
    }
}
